package com.example.model.wemedia.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "User", description = "自媒体用户信息表")
public class User {
    @Schema(description = "主键")
    @TableId(type = IdType.AUTO)
    private Integer userId;

    @Schema(description = "")
    private Integer apUserId;

    @Schema(description = "")
    private Integer apAuthorId;

    @Schema(description = "登录用户名")
    private String userName;

    @Schema(description = "登录密码")
    private String password;

    @Schema(description = "盐")
    private String userSalt;

    @Schema(description = "昵称")
    private String nickName;

    @Schema(description = "头像")
    private String userImage;

    @Schema(description = "归属地")
    private String userLocation;

    @Schema(description = "手机号")
    private String userPhone;

    @Schema(description = "状态 0暂时不可用 1永久不可用 9正常可用")
    private Integer userStatus;

    @Schema(description = "邮箱")
    private String userEmail;

    @Schema(description = "账号类型 0个人 1企业 2子账号")
    private Integer accountType;

    @Schema(description = "运营评分")
    private Integer userScore;

    @Schema(description = "最后一次登录时间")
    private Date loginTime;

    @Schema(description = "创建时间")
    private Date createdTime;
}

